package com.bxx.ermall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bxx.ermall.common.dto.ShopCarDto;
import com.bxx.ermall.entity.ShopCar;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ShopCarMapper extends BaseMapper<ShopCar> {

    @Select("select shop_car.*,goods.title, goods.cover_img from shop_car,goods where shop_car.goods_Id = goods.id")
    public List<ShopCarDto> getList();

}
